﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models {
    import org.robotlegs.mvcs.*;

    public class FileInfoModel extends Actor {

        private var _fileInfo:Object;
        private var _maxSubdomains:int = 1
        private var _assetsBaseURL:String;// = ""

        public function FileInfoModel(){
            this._fileInfo = {};
            super();
        }
        public function set assetsBaseURL(_arg1:String):void{
            this._assetsBaseURL = _arg1;
        }
        public function get assetsBaseURL():String{
            return (this._assetsBaseURL);
        }
        public function set maxSubdomains(_arg1:int):void{
            this._maxSubdomains = _arg1;
        }
        public function get maxSubdomains():int{
            return (this._maxSubdomains);
        }
        public function get fileInfo():Object{
            return (this._fileInfo);
        }
        public function set fileInfo(_arg1:Object):void{
            this._fileInfo = ((_arg1) || ({}));
        }
        public function getCdnUrl(_arg1:String):String{
            return ((this._fileInfo[_arg1]) ? (this._assetsBaseURL + String(this._fileInfo[_arg1]["url"])) : _arg1);
        }
        public function getBytes(_arg1:String):int{
            return ((this._fileInfo[_arg1]) ? int(this._fileInfo[_arg1]["size_in_bytes"]) : 0);
        }
        public function hasURL(_arg1:String):Boolean{
            return (!((this._fileInfo[_arg1] == null)));
        }

    }
}//package net.wooga.pets.models 
